package com.richper.springcloudh2020.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.UUID;


@Controller
@RequestMapping(value = "/payment/zk")
@ResponseBody
public class PaymentController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/zkGet")
    public String zk_get(){
        return "cloud with zookeeper + port : "+port+" UUID : "+ UUID.randomUUID();
    }
}
